<script lang="ts" setup>
import { ref, defineProps } from "vue";
const props = defineProps<{
  title: string;
  size?: "normal" | "big";
}>();
</script>
<template>
  <div class="screen-card">
    <div class="screen-card-title">{{ title }}</div>
    <div :class="['screen-card-body', size === 'big' ? '' : ''].join(' ')">
      <div class="bg">
        <slot />
      </div>
    </div>
  </div>
</template>
<style lang="scss" scoped>
.screen-card {
  margin-bottom: 16px;
  .screen-card-title {
    width: 515px;
    height: 43px;
    background: url("/ifp-web-static/image/all/leadScreen/groupBg.png") no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    padding-left: 34px;
    color: rgba(236, 241, 249, 1);
    font-family: "Alibaba PuHuiTi 3.0";
    font-weight: 600;
    font-size: 24px;
    line-height: 34px;
  }
  .screen-card-body {
    background: url("/ifp-web-static/image/all/leadScreen/Group_16@2x.png") no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
    &.big {
      background: url("/ifp-web-static/image/all/leadScreen/Group_16_1@2x.png") no-repeat;
    }
  }
  .bg {
    background: rgba(255, 255, 255, 0.02);
  }
}
</style>
